package com.itheima.a;

import com.itheima.a.Clerk;
import com.itheima.a.Employee;
import com.itheima.a.Manager;

public class Test {
    public static void main(String[] args) {
        /*Employee employee = new Manager("张小强", "M001", "销售部", "李小亮");
        Manager manager = (Manager) employee;*/
        Manager manager=new Manager("张小强", "M001", "销售部", "李小亮");
        manager.showMsg();

        Employee employee1 = new Clerk("李小亮", "C001", "销售部", "张小强");
        Clerk clerk = (Clerk) employee1;
        clerk.showMsg();

    }
}
